package com.example.shiwu;

import com.example.pcackage.JavaConfig;
import com.example.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Auther: LIJingQi
 * @Description: demo1
 * @Date: 2023/3/30 23:41
 */
public class Demo1 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(JavaConfig.class);
        UserService userService = context.getBean(UserService.class);
        userService.transefor();
    }
}
